//package com.gk.panda.apis.config;
//
//import com.gk.panda.interceptor.AuthorizationInterceptor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @Description:
// * @author: wangchao
// * @date: 2023/4/4 10:42
// * @version: 1.0
// **/
//@Configuration
//public class MvcConfig implements WebMvcConfigurer {
//
//    @Autowired
//    private AuthorizationInterceptor authorizationInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(authorizationInterceptor)
//                .addPathPatterns("/**")
//                .excludePathPatterns("/swagger-ui.html")
//                .excludePathPatterns("/swagger-resources/**")
//                .excludePathPatterns("/error")
//                .excludePathPatterns("/webjars/**");
//    }
////
////    @Override
////    public void addResourceHandlers(ResourceHandlerRegistry registry) {
////        registry.addResourceHandler("/**").addResourceLocations(
////                "classpath:/static/");
////        registry.addResourceHandler("/swagger-ui.html").addResourceLocations(
////                "classpath:/META-INF/resources/");
////        registry.addResourceHandler("/doc.html").addResourceLocations(
////                "classpath:/META-INF/resources/");
////        registry.addResourceHandler("/webjars/**").addResourceLocations(
////                "classpath:/META-INF/resources/webjars/");
////    }
//
//}
